#pragma once
#include<string>
#include<vector>
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
using namespace std;
class Student
{
private:
	int id;
	int year;
	string name;
	string password;
	string gender;
	string telephone;
	string address;
	vector<int> book;
	vector<int> grade;
public:
	Student();
	~Student();
	Student(int a, int b, string c, string d, string e, string f, string g);
    int get_id();
	int get_year();
	string get_name();
	string get_pass();
	string get_gend();
	string get_tele();
	string get_addr();
	vector<int> get_book();
	void change(int a, int b, string c, string d, string e, string f, string g);
    void display();
	int length();
    bool canopen();
    void write();
	void read(int n);
	void write_book();
	void read_book();
	void change_book(int a, int b);
	void add_book(int a);
	void display_book();
	void add_student();
	void sub_student();
	bool is_same_book(int a);
};
